part of 'city_bloc.dart';

abstract class CityState extends Equatable {
  const CityState();
}

/// 被 @immutable 注解标明的类或者子类都必须是不可变的
@immutable
class CitySuccess extends CityState {
  final List<CityModel> cityModels;

  CitySuccess(this.cityModels);

  // props 必须要写，可以自动生成 ，按照工具的文档写即可
  @override
  List<Object> get props => [cityModels];

}


@immutable
class CityInit extends CityState {
  CityInit();
  @override
  List<Object> get props => [];
}


@immutable
class LocationSuccessState extends CityState {
  LocationSuccessState();
  @override
  List<Object> get props => [];
}

